import Layout from '@/layout'

const deviceRouter = {
  path: '/device',
  component: Layout,
  redirect: '/device/list',
  name: 'Device',
  meta: {
    title: '设备管理',
    icon: 'peoples'
  },
  children: [
    {
      path: 'edit/:id(\\d+)',
      component: () => import('@/views/device/edit'),
      name: 'Editdevice',
      meta: { title: '设备详情', noCache: true, activeMenu: '/device/list' },
      hidden: true
    },
    {
      path: 'list',
      component: () => import('@/views/device/list'),
      name: 'DeviceList',
      meta: { title: '设备列表', icon: 'list' }
    }
  ]
}

export default deviceRouter
